package com.spzx.order.enums;

/**
 * 订单状态【0->待付款；1->待发货；2->已发货；3->待用户收货，已完成；-1->已取消】
 */
public enum OrderStatus {

    UN_PAY(0, "待付款"),

    UN_DELIVER(1,"待发货"),

    DELIVER(2, "已发货"),

    UN_SIGN(3,"待用户收货，已完成"),

    CANCEL(-1, "已取消");

    private int code;

    private String msg;

    OrderStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
